package com.ruoyi.pharmacy.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品对象 drug
 * 
 * @author ruoyi
 * @date 2025-08-22
 */
public class Drug extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品id */
    private Integer drugId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String drugName;

    /** 药品单价 */
    @Excel(name = "药品单价")
    private BigDecimal price;

    /** 单位（如盒、瓶） */
    @Excel(name = "单位", readConverterExp = "如=盒、瓶")
    private String unit;

    public void setDrugId(Integer drugId) 
    {
        this.drugId = drugId;
    }

    public Integer getDrugId() 
    {
        return drugId;
    }

    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drugId", getDrugId())
            .append("drugName", getDrugName())
            .append("price", getPrice())
            .append("unit", getUnit())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
